home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Tools - Objects / Installation Folder / SADE Install < prev    next >
Encoding:
Text File  |  1990-11-05  |  3.1 KB  |  105 lines  |  [TEXT/MPWi]

  1. #    S A D E   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install either SADE 1.0, 1.1, 1.2b3 or 1.3a2 from  
  7. #    the E.T.O. #2 distribution compact disk into a folder called "SADE Folder"
  8. #    on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {SystemFolder}    - the path to the folder containing the currently active System
  17. #
  18. #    {DestVolume}    - the name of the volume from which the Installer was launched
  19. #
  20. #    {SADEOption}    - a flag used to indicate which version of SADE to install
  21. #
  22. #    {MPWSource}        - the path to the various MPW and SADE versions
  23. #
  24.  
  25.  
  26. If    "{SADEOption}" == 1            ### install SADE 1.0
  27.     set Source    "{MPWSource}MPW 3.0:SADE 1.0:"
  28. Else If    "{SADEOption}" == 2        ### install SADE 1.1
  29.     set Source    "{MPWSource}MPW 3.1:SADE 1.1:"
  30. Else If    "{SADEOption}" == 3        ### install SADE 1.2b3
  31.     set Source    "{MPWSource}MPW QR2:SADE 1.2b2:"
  32. Else If    "{SADEOption}" == 4        ### install SADE 1.3a2
  33.     set Source    "{MPWSource}MPW PQR2:SADE 1.3a2:"
  34. Else
  35.     Exit 1
  36. End
  37.  
  38.  
  39. ###    First, copy SADE's Multifinder and DA Handler into the System Folder
  40.  
  41. ###    See if MultiFinder already exists, if so, rename it to "MultiFinder.Old"
  42.  
  43. if "`Exists -f "{SystemFolder}MultiFinder"`"
  44.  
  45.     If "`Exists -f "{SystemFolder}MultiFinder.Old"`"
  46.         Delete -y "{SystemFolder}MultiFinder.Old"
  47.     End
  48.  
  49.     Rename -y "{SystemFolder}MultiFinder"     "{SystemFolder}MultiFinder.Old"
  50. End
  51.  
  52. Duplicate -y "{Source}Multifinder"        "{SystemFolder}MultiFinder"
  53.  
  54.  
  55. ###    See if DA Handler already exists, if so, rename it to "DA Handler.Old"
  56.  
  57. If "`Exists -f "{Source}DA Handler"`"    ### doesn't exist in SADE 1.0
  58.  
  59.     If "`Exists -f "{SystemFolder}DA Handler"`"
  60.         If "`Exists -f "{SystemFolder}DA Handler.Old"`"
  61.             Delete -y "{SystemFolder}DA Handler.Old"
  62.         End
  63.         
  64.         Rename -y "{SystemFolder}DA Handler"     "{SystemFolder}DA Handler.Old"
  65.     End
  66.     
  67.     Duplicate -y "{Source}DA Handler"        "{SystemFolder}DA Handler"
  68. End
  69.  
  70. ###    Now, copy the rest of the stuff
  71.  
  72. ###    See if a folder called "SADE Folder" already exists, 
  73. ###    if so, rename it to "SADE Folder.Old"
  74.  
  75. if "`Exists -d "{DestVolume}SADE Folder"`"
  76.  
  77.     If "`Exists -f "{DestVolume}SADE Folder.Old"`"
  78.         Delete -y "{DestVolume}SADE Folder.Old"
  79.     End
  80.     
  81.     Rename -y "{DestVolume}SADE Folder"     "{DestVolume}SADE Folder.Old"
  82. End
  83.  
  84. NewFolder "{DestVolume}SADE Folder"
  85.  
  86. Duplicate -y "{Source}SADE:SADE"                    "{DestVolume}SADE Folder:SADE"
  87. Duplicate -y "{Source}SADE:SADE.Help"                "{DestVolume}SADE Folder:SADE.Help"
  88. Duplicate -y "{Source}SADE:SADE New User Worksheet"    "{DestVolume}SADE Folder:SADE New User Worksheet"
  89. Duplicate -y "{Source}SADE:SysErrs.Err"                "{DestVolume}SADE Folder:SysErrs.Err"
  90. Duplicate -y "{Source}SADE:SADEUserStartup"            "{DestVolume}SADE Folder:SADEUserStartup"
  91. Duplicate -y "{Source}SADE:SADEStartUp"                "{DestVolume}SADE Folder:SADEStartUp"
  92. Duplicate -y "{Source}SADEScripts:"                    "{DestVolume}SADE Folder:SADEScripts:"
  93.  
  94. ###    Special Case for SADE 1.0 - New 'LIB' tool required
  95.  
  96. If    "{SADEOption}" == 1
  97.  
  98.     if "`Exists -d "{DestVolume}MPW Folder"`"
  99.         Duplicate -y "{Source}Tools:Lib"    "{DestVolume}MPW Folder:Tools:Lib"
  100.     End
  101. End
  102.  
  103. ### That's It!
  104.  
  105. Exit 0